/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.sunriseset;

import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
 * @author bsmith
 */
public class Location {

    private String longitude;
    private String latitude;

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    @Override
    public String toString() {
        return "Location ["
                + (latitude != null ? "latitude=" + latitude + ", " : "")
                + (longitude != null ? "longitude=" + longitude : "") + "]";
    }
}
